//
//  UserDefaults+Extension.swift
//  globalcarbusiness
//
//  Created by dongzhenyu on 2017/8/17.
//  Copyright © 2017年 dongzhenyu. All rights reserved.
//

import Foundation

extension UserDefaults {
    
    public subscript(key: String) -> AnyObject {
        
        get {
            return object(forKey: key) as AnyObject
        }
        
        set {
            set(newValue, forKey: key)
        }
    }
    
}
